package com.xzq.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiaozq
 * @Date 2022/12/12 9:26
 * <p>@Description:</p>
 */
@RequestMapping
@RestController
public class SystemAController {

    @GetMapping("/user")
    public Object userinfo(Authentication authentication){
        return authentication;
    }

    @GetMapping("/info")
    public Object ssoinfo(Authentication authentication){
        return  "系统A单点登录";
    }

}
